package cn.juque.datapipeline.mapper;

import cn.juque.datapipeline.entity.DatabaseInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>驱动信息</li>
 * </ul>
 * {@code @date} 2023-03-31 09:28:45
 **/
@Mapper
public interface DatabaseInfoMapper extends BaseMapper<DatabaseInfo> {

    /**
     * 分页查询
     *
     * @param page         : page
     * @param databaseInfo : databaseInfo
     * @return List<DatabaseInfo>
     */
    List<DatabaseInfo> queryInfoList(Page<DatabaseInfo> page, @Param("ew") DatabaseInfo databaseInfo);

    /**
     * 查询
     *
     * @param databaseInfo : databaseInfo
     * @return List<DatabaseInfo>
     */
    List<DatabaseInfo> queryInfoList(@Param("ew") DatabaseInfo databaseInfo);
}
